package com.jsu.bean;

import java.util.ArrayList;
import java.util.List;

public class FoundMessageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FoundMessageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFoundmessageIdIsNull() {
            addCriterion("foundmessage_id is null");
            return (Criteria) this;
        }

        public Criteria andFoundmessageIdIsNotNull() {
            addCriterion("foundmessage_id is not null");
            return (Criteria) this;
        }

        public Criteria andFoundmessageIdEqualTo(Integer value) {
            addCriterion("foundmessage_id =", value, "foundmessageId");
            return (Criteria) this;
        }

        public Criteria andFoundmessageIdNotEqualTo(Integer value) {
            addCriterion("foundmessage_id <>", value, "foundmessageId");
            return (Criteria) this;
        }

        public Criteria andFoundmessageIdGreaterThan(Integer value) {
            addCriterion("foundmessage_id >", value, "foundmessageId");
            return (Criteria) this;
        }

        public Criteria andFoundmessageIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("foundmessage_id >=", value, "foundmessageId");
            return (Criteria) this;
        }

        public Criteria andFoundmessageIdLessThan(Integer value) {
            addCriterion("foundmessage_id <", value, "foundmessageId");
            return (Criteria) this;
        }

        public Criteria andFoundmessageIdLessThanOrEqualTo(Integer value) {
            addCriterion("foundmessage_id <=", value, "foundmessageId");
            return (Criteria) this;
        }

        public Criteria andFoundmessageIdIn(List<Integer> values) {
            addCriterion("foundmessage_id in", values, "foundmessageId");
            return (Criteria) this;
        }

        public Criteria andFoundmessageIdNotIn(List<Integer> values) {
            addCriterion("foundmessage_id not in", values, "foundmessageId");
            return (Criteria) this;
        }

        public Criteria andFoundmessageIdBetween(Integer value1, Integer value2) {
            addCriterion("foundmessage_id between", value1, value2, "foundmessageId");
            return (Criteria) this;
        }

        public Criteria andFoundmessageIdNotBetween(Integer value1, Integer value2) {
            addCriterion("foundmessage_id not between", value1, value2, "foundmessageId");
            return (Criteria) this;
        }

        public Criteria andFoundIdIsNull() {
            addCriterion("found_id is null");
            return (Criteria) this;
        }

        public Criteria andFoundIdIsNotNull() {
            addCriterion("found_id is not null");
            return (Criteria) this;
        }

        public Criteria andFoundIdEqualTo(Integer value) {
            addCriterion("found_id =", value, "foundId");
            return (Criteria) this;
        }

        public Criteria andFoundIdNotEqualTo(Integer value) {
            addCriterion("found_id <>", value, "foundId");
            return (Criteria) this;
        }

        public Criteria andFoundIdGreaterThan(Integer value) {
            addCriterion("found_id >", value, "foundId");
            return (Criteria) this;
        }

        public Criteria andFoundIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("found_id >=", value, "foundId");
            return (Criteria) this;
        }

        public Criteria andFoundIdLessThan(Integer value) {
            addCriterion("found_id <", value, "foundId");
            return (Criteria) this;
        }

        public Criteria andFoundIdLessThanOrEqualTo(Integer value) {
            addCriterion("found_id <=", value, "foundId");
            return (Criteria) this;
        }

        public Criteria andFoundIdIn(List<Integer> values) {
            addCriterion("found_id in", values, "foundId");
            return (Criteria) this;
        }

        public Criteria andFoundIdNotIn(List<Integer> values) {
            addCriterion("found_id not in", values, "foundId");
            return (Criteria) this;
        }

        public Criteria andFoundIdBetween(Integer value1, Integer value2) {
            addCriterion("found_id between", value1, value2, "foundId");
            return (Criteria) this;
        }

        public Criteria andFoundIdNotBetween(Integer value1, Integer value2) {
            addCriterion("found_id not between", value1, value2, "foundId");
            return (Criteria) this;
        }

        public Criteria andFacetokenIsNull() {
            addCriterion("facetoken is null");
            return (Criteria) this;
        }

        public Criteria andFacetokenIsNotNull() {
            addCriterion("facetoken is not null");
            return (Criteria) this;
        }

        public Criteria andFacetokenEqualTo(String value) {
            addCriterion("facetoken =", value, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenNotEqualTo(String value) {
            addCriterion("facetoken <>", value, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenGreaterThan(String value) {
            addCriterion("facetoken >", value, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenGreaterThanOrEqualTo(String value) {
            addCriterion("facetoken >=", value, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenLessThan(String value) {
            addCriterion("facetoken <", value, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenLessThanOrEqualTo(String value) {
            addCriterion("facetoken <=", value, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenLike(String value) {
            addCriterion("facetoken like", value, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenNotLike(String value) {
            addCriterion("facetoken not like", value, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenIn(List<String> values) {
            addCriterion("facetoken in", values, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenNotIn(List<String> values) {
            addCriterion("facetoken not in", values, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenBetween(String value1, String value2) {
            addCriterion("facetoken between", value1, value2, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenNotBetween(String value1, String value2) {
            addCriterion("facetoken not between", value1, value2, "facetoken");
            return (Criteria) this;
        }

        public Criteria andPhotopathIsNull() {
            addCriterion("photopath is null");
            return (Criteria) this;
        }

        public Criteria andPhotopathIsNotNull() {
            addCriterion("photopath is not null");
            return (Criteria) this;
        }

        public Criteria andPhotopathEqualTo(String value) {
            addCriterion("photopath =", value, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathNotEqualTo(String value) {
            addCriterion("photopath <>", value, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathGreaterThan(String value) {
            addCriterion("photopath >", value, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathGreaterThanOrEqualTo(String value) {
            addCriterion("photopath >=", value, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathLessThan(String value) {
            addCriterion("photopath <", value, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathLessThanOrEqualTo(String value) {
            addCriterion("photopath <=", value, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathLike(String value) {
            addCriterion("photopath like", value, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathNotLike(String value) {
            addCriterion("photopath not like", value, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathIn(List<String> values) {
            addCriterion("photopath in", values, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathNotIn(List<String> values) {
            addCriterion("photopath not in", values, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathBetween(String value1, String value2) {
            addCriterion("photopath between", value1, value2, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathNotBetween(String value1, String value2) {
            addCriterion("photopath not between", value1, value2, "photopath");
            return (Criteria) this;
        }

        public Criteria andQualityIsNull() {
            addCriterion("quality is null");
            return (Criteria) this;
        }

        public Criteria andQualityIsNotNull() {
            addCriterion("quality is not null");
            return (Criteria) this;
        }

        public Criteria andQualityEqualTo(Integer value) {
            addCriterion("quality =", value, "quality");
            return (Criteria) this;
        }

        public Criteria andQualityNotEqualTo(Integer value) {
            addCriterion("quality <>", value, "quality");
            return (Criteria) this;
        }

        public Criteria andQualityGreaterThan(Integer value) {
            addCriterion("quality >", value, "quality");
            return (Criteria) this;
        }

        public Criteria andQualityGreaterThanOrEqualTo(Integer value) {
            addCriterion("quality >=", value, "quality");
            return (Criteria) this;
        }

        public Criteria andQualityLessThan(Integer value) {
            addCriterion("quality <", value, "quality");
            return (Criteria) this;
        }

        public Criteria andQualityLessThanOrEqualTo(Integer value) {
            addCriterion("quality <=", value, "quality");
            return (Criteria) this;
        }

        public Criteria andQualityIn(List<Integer> values) {
            addCriterion("quality in", values, "quality");
            return (Criteria) this;
        }

        public Criteria andQualityNotIn(List<Integer> values) {
            addCriterion("quality not in", values, "quality");
            return (Criteria) this;
        }

        public Criteria andQualityBetween(Integer value1, Integer value2) {
            addCriterion("quality between", value1, value2, "quality");
            return (Criteria) this;
        }

        public Criteria andQualityNotBetween(Integer value1, Integer value2) {
            addCriterion("quality not between", value1, value2, "quality");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}